<link rel="stylesheet" type="text/css" href="/vendor/bootstrap-Switch/bootstrapSwitch.css" />
<script language="javascript" src="/vendor/bootstrap-Switch/bootstrapSwitch.js"></script>
<div class="page-container">
	<!-- 搜索区 -->
	<div search_url="<{:url('replayimgtext/lists')}>">
		
		
		<input type="text" name="keyword" placeholder=" 请输入关键" style="width:250px" class="input-text">
		
		
		
		<span class="select-box inline">
		<select name="type" class="select">
	          
	          <{volist name="type" id="v"}>
	              <option value="<{$key}>">
	              <{$v}>
	              </option>
	          <{/volist}>
	          
		</select>
		</span>

		<span class="select-box inline">
		<select name="status" class="select">
	          <{volist name="status" id="v"}>
	              <option value="<{$key}>">
	              <{$v}>
	              </option>
	          <{/volist}>
		</select>
		</span> 
		
		
		
		
		<button class="btn btn-success" onclick="com_search(1)" type="submit">
		<i class="Hui-iconfont">&#xe665;</i>
		 搜索
		</button>		
	</div>
	
	<!-- 操作区 -->
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<span class="l">
		<a href="javascript:;" _url="<{:url('replayimgtext/delall')}>" msg="您确定要批量删除？" onclick="com_delall(this)" class="btn btn-danger radius">
			<i class="Hui-iconfont">&#xe6e2;</i> 
			批量删除
		</a>
		 
		<a class="btn btn-primary radius" data-title="添加文章" _url="<{:url('replayimgtext/add')}>" onclick="com_page(this)" href="javascript:;">
			<i class="Hui-iconfont">&#xe600;</i> 
			添加
		</a>
		</span> 
	</div>
	
	<!-- 列表 -->
	<div class="mt-20">
		<div class="dataTables_wrapper no-footer">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr>
					<th width="25"><input type="checkbox" name="all"></th>
					<th width="80">ID</th>
					<th>图片</th>
					<th>关键字</th>
					<th>标题</th>
					<th>描述</th>
					<th>外链地址</th>
					<th>关键字类型</th>
					<th>排序</th>
					<th>开关</th>
					<th>匹配发送次数</th>
					<th>时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody id="com_body">
			</tbody>
		</table>
		<div id="com_page"></div>
		</div>
	</div>
</div>

<script>

function switchs()
{
	$(".switch").bootstrapSwitch();
}
$().ready(function(){
	com_search(1);
});
</script>